//
//  AppDelegate.swift
//  KOLToken
//
//  Created by yangsan on 2020/2/26.
//  Copyright © 2020 iOS-team. All rights reserved.
//

import UIKit
import SwiftyFitsize
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
    
    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        
        initWindow()
        
        initCommomUI()
        return true
    }
    
    // MARK: - private
    
    private func initCommomUI() {
        
    }
    
    private func initWindow() {
        let rootController = KTTabBarController()
        window = UIWindow()
        window?.rootViewController = rootController
        window?.backgroundColor = UIColor.white
        window?.frame = CGRect(x: 0, y: 0, width: KTAppFrame.kScreenWidth, height: KTAppFrame.kScreenHeight)
        window?.makeKeyAndVisible()
    }
    
    
}

